﻿using System.Collections.Generic;
using System.Xml.Serialization;

namespace SverigesRadio.SverigesRadioApp.Model
{
    public class Channel
    {
        [XmlAttribute("id")]
        public string Id { get; set; }

        [XmlAttribute("name")]
        public string Name { get; set; }

        [XmlAttribute("xmltv")]
        public string XmlTv { get; set; }

        [XmlElement("category")]
        public string Category { get; set; }

        [XmlElement("channelcategory")]
        public string ChannelCategory { get; set; }

        [XmlElement("logo")]
        public string Logo { get; set; }

        [XmlElement("colour")]
        public string Colour { get; set; }

        public string FormattedColour
        {
            get { return string.Format("#{0}", Colour); }
        }

        [XmlElement("tagline")]
        public string TagLine { get; set; }

        [XmlElement("streamingurl")]
        public StreamingUrl StreamingUrl { get; set; }
    }
}